package com.ysqcould.approval.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.ysqcould.common.annotation.Excel;
import com.ysqcould.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 通用任务对象 t_general_task
 * 
 * @author ruoyi
 * @date 2022-06-29
 */
public class GeneralTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 协会id */
    @Excel(name = "协会id")
    private Long asId;

    /** 创建人id */
    @Excel(name = "创建人id")
    private Long userId;

    /** 任务标题 */
    @Excel(name = "任务标题")
    private String title;

    /** 任务内容 */
    @Excel(name = "任务内容")
    private String content;

    /** 图片/附件地址 */
    @Excel(name = "图片/附件地址")
    private String pcUrl;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 负责人id：多人用；拼接 */
    @Excel(name = "负责人id：多人用；拼接")
    private String principalIds;

    /** 审批人id */
    @Excel(name = "审批人id")
    private Long approverId;

    /** 审批状态：0审批中，1通过，2驳回，3撤销 */
    @Excel(name = "审批状态：0审批中，1通过，2驳回，3撤销")
    private Long checkStatus;

    /** 驳回理由 */
    @Excel(name = "驳回理由")
    private String rejectReason;

    /** 抄送人id：多人用；拼接 */
    @Excel(name = "抄送人id：多人用；拼接")
    private String copyIds;

    /** 状态（字典 0正常 1冻结 2删除） */
    @Excel(name = "状态", readConverterExp = "字=典,0=正常,1=冻结,2=删除")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAsId(Long asId) 
    {
        this.asId = asId;
    }

    public Long getAsId() 
    {
        return asId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setPcUrl(String pcUrl) 
    {
        this.pcUrl = pcUrl;
    }

    public String getPcUrl() 
    {
        return pcUrl;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setPrincipalIds(String principalIds) 
    {
        this.principalIds = principalIds;
    }

    public String getPrincipalIds() 
    {
        return principalIds;
    }
    public void setApproverId(Long approverId) 
    {
        this.approverId = approverId;
    }

    public Long getApproverId() 
    {
        return approverId;
    }
    public void setCheckStatus(Long checkStatus) 
    {
        this.checkStatus = checkStatus;
    }

    public Long getCheckStatus() 
    {
        return checkStatus;
    }
    public void setRejectReason(String rejectReason) 
    {
        this.rejectReason = rejectReason;
    }

    public String getRejectReason() 
    {
        return rejectReason;
    }
    public void setCopyIds(String copyIds) 
    {
        this.copyIds = copyIds;
    }

    public String getCopyIds() 
    {
        return copyIds;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("asId", getAsId())
            .append("userId", getUserId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("pcUrl", getPcUrl())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("principalIds", getPrincipalIds())
            .append("approverId", getApproverId())
            .append("checkStatus", getCheckStatus())
            .append("rejectReason", getRejectReason())
            .append("copyIds", getCopyIds())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .toString();
    }
}
